unit closeconf;
(*  cssMonkey
    Copyright (C) 2011 Matthew Hipkin <http://www.matthewhipkin.co.uk>

    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/. *)
{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;

type

  { TfrmCloseConfirm }

  TfrmCloseConfirm = class(TForm)
    btnSaveAll: TButton;
    btnClose: TButton;
    btnCancel: TButton;
    Label1: TLabel;
    listFiles: TListBox;
    procedure btnCancelClick(Sender: TObject);
    procedure btnCloseClick(Sender: TObject);
    procedure btnSaveAllClick(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
    saveAll: Boolean;
  end;

var
  frmCloseConfirm: TfrmCloseConfirm;

implementation

{$R *.lfm}

{ TfrmCloseConfirm }

procedure TfrmCloseConfirm.btnCloseClick(Sender: TObject);
begin
  saveAll := false;
  ModalResult := mrOK;
end;

procedure TfrmCloseConfirm.btnSaveAllClick(Sender: TObject);
begin
  saveAll := true;
  ModalResult := mrOK;
end;

procedure TfrmCloseConfirm.btnCancelClick(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

end.

